package cn.cycleif.init.execute;

import cn.cycleif.init.execute.base.AbstractApplicationExecute;
import org.springframework.boot.CommandLineRunner;
import org.springframework.context.ConfigurableApplicationContext;

import static cn.cycleif.init.constant.InitializeHandlerType.APPLICATION_COMMAND_LINE_RUNNER;

/**
 * @Date: 25/1/17-18:56
 * @Desc:
 */
public class ApplicationCommandLineRunnerExecute extends AbstractApplicationExecute implements CommandLineRunner {

  public ApplicationCommandLineRunnerExecute(ConfigurableApplicationContext applicationContext){
    super(applicationContext);
  }

  @Override
  public void run(final String... args) {
    execute();
  }

  @Override
  public String type() {
    return APPLICATION_COMMAND_LINE_RUNNER;
  }
}